/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-09-03
 * Time: 20:42
 */

//饿汉模式
public class Singleton {
    private static Singleton instance = new Singleton();

    private Singleton() {

    }

    public Singleton getInstance() {
        return instance;
    }

    public static void main(String[] args) {

    }
}
